<?php
    //ob_start();
    $id = $_GET['sid'];
    
    $maytinh = new maytinhbs();
    $ret_maytinh = $maytinh->GetListComputer($id);
    
    $maytinh->MaSanPham = $id;
    $maytinh->Delete();
    
    xoa_taptin($ret_maytinh[0]['HinhNho'], "../");
    xoa_taptin($ret_maytinh[0]['HinhTo'], "../");
    
    $_SESSION['xoathanhcong'] = '';
            
    header("Location: index.php?do=danhsach_maytinh");
?>